<div id="module_cart" class="box">
  <div class="top"><img src="catalog/view/theme/wenlong/image/basket.png" alt="" /><?php echo $heading_title; ?></div>

    <div class="middle" id="cart">
        <?php if ($products || $vouchers) { ?>
        <table cellspacing="0" cellpadding="2" style="width: 100%;" >
            <tbody>
            <?php foreach ($products as $product) { ?>
            <tr>
                <td valign="top" align="left" style="width:1px"><span onclick="(getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') ? location = 'index.php?route=checkout/cart&remove=<?php echo $product['key']; ?>' : $('#cart').load('index.php?route=module/cart&remove=<?php echo $product['key']; ?>' + ' #cart > *');" class="cart_remove">&nbsp;</span></td><td valign="top" align="right" style="width:1px"><?php echo $product['quantity']; ?>&nbsp;x&nbsp;</td>
                <td valign="top" align="left"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
                    <div>
                    </div></td>
            </tr>
            <?php } ?>
            </tbody></table>
        <br>
        <table cellspacing="0" cellpadding="0" align="right" style="display:inline-block;">
            <tbody>

            <?php foreach ($totals as $total) { ?>
            <tr>
                <td align="right"><span class="cart_module_total"><b><?php echo $total['title']; ?>:</b></span></td>
                <td align="right"><span class="cart_module_total"><?php echo $total['text']; ?></span></td>
            </tr>
            <?php } ?>
            </tbody></table>
        <div style="padding-top:5px;text-align:center;clear:both;"><a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
        <?php } else { ?>
        <div class="empty"><?php echo $text_empty; ?></div>
        <?php } ?>

    </div>
  <div class="bottom">&nbsp;</div>
</div>
